node event emitter, how to emit events, just like the dom would