Correct indentation
Use OO syntax instead of OLOO
Reduce complexity of listeners object, use array
Reduce if statements
Move `EventEmitter` into partial