A library to add event capability to JavaScript libraries