Changed to using event.target to gain Firefox compatibility

Hi. Thanks for updating this to jQuery. I made a small modification to get Firefox compatibility.

* Changed to using event.target instead of toElement
* Also changed example.html to use the jQuery selector in initialize.