title: How to access static js files in EJS?
body: <p>I have folder structure like</p>
  
  <pre><code>--project
  ----public
  ------flowplayer
  ----views
  </code></pre>
  
  <p>I want to access files inside js folder from the ejs file inside views. I tried like this but did not work</p>
  
  <p><code>app.use(express.static(path.join(__dirname, 'public')));
  app.set('views', path.join(__dirname, 'views'));
  app.set('view engine', 'ejs');</code></p>
  
  <p>From EJS I am accessing file like this</p>
  
  <pre><code>&lt;script type="text/javascript" src="../public/flowplayer/flowplayer-3.2.13.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>But I am getting error like</p>
  
  <pre><code>http://localhost:3000/connect/125468/test/48B1527B237BB/flowplayer/flowplayer-3.2.13.min.js 
  </code></pre>
  
  <p>Thanks</p>