A simple event system for JavaScript.