Add JSHINT as a test pre-requisite, update files to pass JSHINT.