simplify EventTarget polyfill