I had the same problem back in a day so I created a super tiny library to help me with events. Check it out, maybe you will find it useful.
https://github.com/anvk/Events.js
var events = new utils.Events();
var callback1 = function() {...};
var callback2 = function(arg1, arg2) {...};
events.on('event A', callback1);
events.on('event B', callback2);
events.emit('event A');
events.emit('event B', [var1, var2]);