added event emitter class and CSS prefix detector