Tiny implementation of EventEmitter for the browser