Fixes #9 Adds animation events cross-browser support