Replace the EventManager class by the standard events.EventEmitter
class.