Remove custom event polyfill