title: Stack jquery in expressJs
body: <p>I'm looking for a way to stack jquery from the express app.js file.<br>
  Maybe this is not possible but I need to use jquery in the <code>app.js</code> which modifies the html file.  </p>
  
  <p>Example:</p>
  
  <p><strong>app.js</strong></p>
  
  <pre class="lang-js prettyprint-override"><code>const express = require('express')
  const app = express()
  const $ = global.jQuery = require( 'jquery' );
  
  app.get('/', function (req, res) {
    res.sendFile(path.join(__dirname+'/index.html'));
    $("#click").click(function(e){
          console.log('click');   
      }) 
  })
  
  app.listen(3000, function () {
    console.log('Example app listening on port 3000!')
  })
  </code></pre>
  
  <p><strong>index.html</strong></p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Express - Jquery&lt;/title&gt;
      &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt; 
      &lt;button id="click" type="button"&gt;Click&lt;/button&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Maybe I'm using the wrong method...<br>
  If someone has already done this</p>