Add customEvent polyfill for IE9-10