How are Event objects created?

How are Event objects created? I’m currently using the purescript-web libraries and I can’t seem to figure out how to create an Event object to call the function Web.Event.EventTarget.dispatchEvent.

You’ll have to use FFI, no API is provided for that purpose in purescript-web.