added CustomEvent polyfill for IE9-11