Browser version of NodeJS EventEmitter.