title: Node.js error including js file - file cannot be found
body: <p>I'm running a node.js server. In the node I require and run the module by using </p>
  
  <pre><code>var h = require('h.js');
  h.hello();
  </code></pre>
  
  <p>This prints Hello World to the console. However, I want to be able to run the code from h.js from a page(entrypage.html) in my browser as well. I try to import it by </p>
  
  <pre><code>&lt;script type="text/javascript" src="/node_modules/h.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>However, this gives a 404 error when run on localhost.</p>
  
  <pre><code>GET http://localhost:8080/node_modules/h.js 
  </code></pre>
  
  <p>How do I get access to this javascript file on the HTML page?</p>
  
  <p>My file structure has a root with html/, js/, node_modules/ and server.js. The HTML page is inside html/, the js file in node_modules/</p>
  
  <p>EDIT: I'm using the MEAN stack for this - MongoDB, Express.js, Angular.js and Node.js.</p>