A JS event emitter