A custom events emitter for Node.js and the browser