A simple DOM-like event system