typeOf(window.dispatchEvent) 'undefined'