Lint fixes for JavaScript files

Some simple JavaScript fixes to pass JS Lint.