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

exclude less*.min.js files