check IE8 unsupported window.addEventListener