title: EJS and jquery not loading javascript reference
body: <p>This is driving me insane.</p>
  
  <p>I have a node app with express.  It serves up a file called index.ejs.</p>
  
  <p>All I wanna do is import a javascript file on this page (something like jquery).  But it won't pull it up, and I'm going nuts (as this should be simple).</p>
  
  <p>On the server side I have this code in a file called app.js:</p>
  
  <pre><code>var express = require('express');
  var app = express.createServer();
  var hostName = (process.env.VCAP_APP_HOST || 'localhost');
  app.listen( process.env.VCAP_APP_PORT ||  8000);
  app.use(express.static(__dirname +  '/public/javascript/'));
  
  
  //Create the view
  app.set('views', __dirname + '/views');
  app.set('view engine', 'ejs');
  app.set('view options', { layout: false });
  app.get('/', function(req, res){
      res.render('index.ejs', {
                item : "document.write('Hello World');"
      });
  });
  </code></pre>
  
  <p>In the ejs file, I have this:</p>
  
  <pre><code>&lt;html&gt;
          &lt;script&gt;
          &lt;%= item %&gt;
      &lt;/script&gt;
  
  &lt;a href=""&gt;Link&lt;/a&gt;
  &lt;script type="text/javascript" src="/javascript/jquery.js"&gt;&lt;/script&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I can see in the console that the script is not loaded (it shows an error).  But for the life of me I can't figure out why.</p>