function inherit(Target, Origin){ function F(){} F.prototype = Origin.prototype; Target.prototype = new F(); Targe.prototype.construct = Target; }