Event Emitter component, compatible with nodejs Event Emitter