this.x = function => X.prototype.x = function

Much better for .clone and subclassing.