Fix issue with removing event listeners in EventEmitter.
Prepare code for compression with closure compiler.