title: Node JS keep getting Failed to load resource error message
body: <p>I am currently testing out a node.js application and have tried to add:</p>
  
  <pre><code>&lt;link rel="stylesheet" href="assets/css/formalize.css" /&gt;
  &lt;script src="assets/js/jquery.formalize.js"&gt;&lt;/script&gt; 
  </code></pre>
  
  <p>to my code but keeping getting the error message: </p>
  
  <pre><code>Failed to load resource: the server responded with a status of 404 (Not Found) 
  
  http://localhost:3000/assets/css/formalize.css
  
  Failed to load resource: the server responded with a status of 404 (Not Found) 
  
  http://localhost:3000/assets/js/jquery.formalize.js
  </code></pre>
  
  <p>Any idea where I'm going wrong? Here is my code so far (in app.js)</p>
  
  <pre><code>var express = require('express'),
      app = express(),
      server = require('http').createServer(app),
      io = require('socket.io').listen(server);
  
  server.listen(3000);
  
  app.get('/', function(req, res) {
      res.sendfile(__dirname + '/index.htm');
  });
  
  io.sockets.on('connection', function(socket) {
      socket.on('send message', function(data) {
          io.sockets.emit('new message', data);
      });
  });
  </code></pre>