Fixing JS to follow JS Hint standard

no Linter for javascript