fix eventemitter2 in browser

Fix for EventEmitter2(https://github.com/asyncly/EventEmitter2) isuee: https://github.com/borisyankov/DefinitelyTyped/issues/3075

I added tests for class inheritance.
I have no idea to avoid duplicating EventEmitte2 class definition. Please teach me more efficient way.