fixed object parsing
Merge pull request #13 from nwre87/js

fixed object parsing