var a = new Array(); a.prototype.emit = myEventEmitter; I think