A Javascript event emitter.