title: How to call js completion in html file instead of js file?
body: <p>I had installed tern_for_vim and YouCompleteMe for js completion this way.</p>
  
  <p>1 install node</p>
  
  <pre><code>curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
  source ~/.nvm/nvm.sh
  nvm install node
  </code></pre>
  
  <p>2 install tern_for_vim</p>
  
  <pre><code>$ cd ~/.vim/bundle
  git clone https://github.com/marijnh/tern_for_vim
  </code></pre>
  
  <p>3 install YouCompleteMe</p>
  
  <pre><code>cd ~/.vim/bundle/YouCompleteMe
  $ ./install.sh --clang-completer --tern-completer
  </code></pre>
  
  <p>4 edit .tern-project</p>
  
  <pre><code>vim  .tern-project  
  {
      "libs": [
          "browser",
          "underscore",
          "jquery"
      ],
      "plugins": {
          "node": {}
      }
  }
  </code></pre>
  
  <p>Now to  vim test.js.<br>
  The js completion pop up after inputing <code>document.</code> in test.js file.<br>
  <a href="https://i.stack.imgur.com/50StI.png" rel="noreferrer"><img src="https://i.stack.imgur.com/50StI.png" alt="enter image description here"></a></p>
  
  <p>Then to vim test.html<br>
  No  js completion pop up after inputing <code>document.</code> in test.html file.<br>
  How to fix it?</p>