An event system for JavaScript libraries.