var a = {
prop_a: "prop a",
meth_a: function(){return "meth a"}
};
function B( set_prop_b ){
this.prop_b = set_prop_b;
this.meth_b = function(){return "meth b"}
}
B.prototype = a;
var test = new B("prop b");
test.prop_a; // prop a
test.meth_a(); // meth a
test.prop_b; // prop b
test.meth_b(); // meth b
JSON.stringify(test); // {"prop_b":"prop b"}