Create a custom DOM event