An Event Emitter (Pub sub model) implementation in Javascript.