Fix minor javascript errors
Merge pull request #315 from DevYah/javascript_fix

Fix minor javascript errors