change $obj
work for javascript
Merge pull request #160 from dkonurov/master

separate javascript and rename $obj