emitter.js Event emitter component that works everywhere. Has also been ported into a component found here Usage Included as an AMD or CommonJS module or exported as a global Emitter. Works serverside and in browsers.