Altered scripts.js to pass jshint