Making EventEmitter3 work as a component