Event library for JavaScript