fix IE8 crashes caused by calling document.addEventListener and document.createEvent
Merge pull request #1 from jonwolfe/fix-IE8-crashes

fix IE8 crashes caused by calling document.addEventListener and document...