Use tern to complete js.