Object.extend(Function.prototype, { getArguments: function() { var args = []; for(var i=0; i