added tern for js autocompletion