added tern to npm for autocomplete in emacs