Simple event emitter for Node.JS and Browser