Use DOM level 3 syntax for custom events