node's EventEmitter for browsers