Switch to browserify, introduce EventEmitter