get DOM-level custom events to work