Implement Node.JS EventEmitter API for Browser.