Library for custom JavaScript event system in the browser as well as node.js