update the current file in tern when a new file is opened

exclude less*.min.js files
fix jsdoc
Merge pull request #3857 from dloverin/update-tern-files

update the current file in tern when a new file is opened