Polyfill CustomEvent only on IE (we do this until we can find a check that passes on Safari).