various improvements

The only thing left is the use strict warning which when I enable strict mode I get:

>
> ```js
> return ($.event.dispatch || $.event.handle).apply(this, args);
> ```
> Possible strict violation.