change $obj
work for javascript