corrected javascript
Merge pull request #182 from dkonurov/master

correted javascript