Use jQuery events instead of addEventListener

Helps IE8 (when using excanvas).
Adds a dependency on jQuery.

I haven't updated the minified version though.