HTML CustomEvent Polyfill