Polyfill for creating CustomEvents on IE9/10 if native implementation is missing.