jhint issues in script.js