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

Excluding tern and acorn from grunt jshints task and fixing existing warnings in JavaScriptCodeHints extension.