Behave
Behave wraps a function to limit the amount of times it can be called, then calls the a notifier function once that limit has been reached.
Usage
var behave = ; var myfunc = ; for var i = 0; i < 20; i++ ;
The above example will print.
Hello
Hello
Hello
Hello
Hello
Good Bye