Iss 1

I changed a lot about the way the click event was being handled, so you might want to take a good review on the changes but this fixed issue #1 on my osx firefox.

Also, because my first changes were bringing the final compiled file to over 1k I made some optimizations on my last commit that definitively will reduce the final file size, even though you chose not to merge this pull request.