fix event type for html events

HTMLEvents is the proper name
https://developer.mozilla.org/en-US/docs/Web/API/document.createEvent#Notes

thanks @ashnur