Switching to jshint and fixing javascript lint issues.