Fixing some js.
Merge pull request #736 from ngodfraind/bugfix

Fixing some js.