How to inherit a ccb node's js controller from an object?

Hi again

i have a class like this:
var GameObject = function(){ this.name = null; this.hasAnimation = false; // ... };

And another class like below that inherited from GameObject:
var PhysicsObject = function() { this.friction = 0.7; this.mass = 1; // ... }; PhysicsObject.prototype = Object.create(GameObject);

suppose i created a node in cocosbuilder3 with the name of “Bird.ccb” and the js controller of “Bird.js” :
// in the Bird.ccb's js controller var Bird = function(){}; Bird.prototype.onDidLoadFromCCB = function(){ var controller = this.rootNode; // how to make "controller" be a sub set of PhysicsObject? // can i do : controller.prototype = Object.create(PhysicsObject) ? };

and the question is : how can i make the “controller” variable that declared in “onDidLoadFromCCB” function to inherit from “PhysicsPbject” ?
also how to access a node’s controller in another node’s controller ?