typeOf(window.dispatchEvent)  'undefined'