Polyfill W3C DOM event on IE8