Added tern project and configured it.

Tern is for M-. (jump to definition)
Tern is for M-, (previos spot)
Also some other JS completion stuff

http://ternjs.net/doc/manual.html#emacs