Is `createEvent` now deprecated? 

Maybe use `CustomEvent` if supported? https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent