Fix JSHint warnings and exclude tern and acorn related files from grunt.