fail gracefully when browser does not support createEvent (IE8)
Merge pull request #7 from sansb/master

Fail gracefully when browser does not support document.createEvent (as in IE8)