title: Node.js return a JS file locally
body: <p>Inside my html file, I am using this:</p>
  
  <pre><code>&lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>However, I was not allowed to connect to internet during the running. How can I use node js to return this file locally. I already download this file "jquery.min.js" in my local machine. </p>
  
  <p>I am trying to use this code, but it does not work.</p>
  
  <pre><code>function callback(data) { 
      res.writeHead(200, {"Content-Type": "text/html"});
      var str = data+"";
      res.write(str);     
      res.end();
  }
  HTMLtemplate.load("jquery.min.js", callback); 
  </code></pre>