A simple emitter for node and the browser