title: Including of external js while using node.js
body: <p>I have code like the following for chat app using the socket.io</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;htmL&gt;
  &lt;head&gt;
  &lt;title&gt;Chat with socket.io and node.js&lt;/title&gt;
  &lt;style&gt;
  #chat{
  height:500px;
  }
  &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div id="chat"&gt;&lt;/div&gt;
  &lt;form id="send-message"&gt;
  &lt;input size="35" id="message"&gt;&lt;/input&gt;
  &lt;input type="submit"&gt;&lt;/input&gt;
  &lt;/form&gt;
  
  &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="socket.io/socket.io.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  
  jQuery(function($){
  var socket=io.connect();
  var $messageForm=$('#send-message');
  var $messageBox=$('#message');
  var $chat=$('#chat');
  
  $messageForm.submit(function(e){
  e.preventDefault();
  socket.emit('send message',$messageBox.val());
  $messageBox.val('');
  $messageBox.focus();
  });
  
  socket.on('new message',function(data){
  $chat.append(data+"&lt;br/&gt;");
  });
  
  });
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>When i am running this it was working fine.</p>
  
  <p>But when ever I change the jquery file with local sotred one it was not getting that file even it present there.
  Please solve me.</p>
  
  <p>Code after modification</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="socket.io/socket.io.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>How to include external js file here.</p>