Add support for custom events

Triggers custom DOM events for unknown events names instead of throwing an error.