window.addEventListener polyfill