Using EventEmitter and Browserify for client