fail gracefully when browser does not support createEvent (IE8)