Added JavaScript code, depends on tern, npm install -g tern and don't forget about adding a .tern-project file in directory. Basic outline is {loadEagerly:[./path/to.js]}