Javascript Event-Emitter-Receiver implementation with a twist