Add Go to Definition for Javascript <reference> tags

Also fixes Add _references.js command.

How can we disable that command for non-web projects?