Only provide JS hints for JavaScript files

This pull request narrowly addresses #3049 by disabling JavaScript hinting in non-JavaScript files (e.g., HTML files). I've opened up a new issue (#3054) to address enabling JavaScript hinting from within HTML files.