title: How to include js files in my EJS templates in node.js using express 3.x
body: <p>All the examples I am seeing use the <code>app.dynamicHelpers</code> to provide a method for accessing my javascript files in my view templates. But in express 3.x there is no clear way to do this. The <a href="https://github.com/visionmedia/express/wiki/Migrating-from-2.x-to-3.x" rel="nofollow">migration docs</a> say "use middleware". I'm relatively new to the concept of 'middleware' and don't know how to implement this. </p>
  
  <p>All I would like to know is the most elegant way to include javascript files in my view templates.</p>