Is it like...
var obj = new Object();
obj.function1 = function(){
//code
}
or something like that?
You can also do the following instead of using the "Object.create()" method.
Function call:
com.blah.MyChildObj.prototype = createObject(com.blah.MyParentObj.prototype,
com.blah.MyChildObj);
Function definition:
function createObject(theProto, theConst) {
function x() {};
x.prototype = theProto;
x.prototype.constructor = theConst;
return new x();
}