A JS EventEmitter foundation for evented code