Added a JavaScript linter check per issue #32. Made some changes to the JavaScript files to make the Linter happy.