Event emitter for Node & browser