Fixed exporting the EventEmitter object