Object.prototype.replace = function(names,name) { that=this[name]; delete this[name]; this[names]=that; return this };