ah wait a minute, yes, but you can't execute it inside the function, can you? the object code is unneeded, i could've done it with normal functions as well, just a personal preference in this scenario.
Code:
var obj = new Object();
obj.test = function() {
alert("working!");
}
obj.run(param) {
//do something interesting here
param; //execute param, in theory.
//do something interesting here as well
param //maybe call it again.
}