Add tern for javascript completion