Fixed #181 - CustomEvent polyfill