javascript and rename $obj