title: node-webkit loading module fails
body: <p>I'm starting with node-webkit and I cannot load a module (a JS file) I made in my project.
  Here is the tree view :
  root</p>
  
  <pre><code>|-index.html
  |-js/
  |---app.js
  |---resources/
  |-----angular..jquery..
  |---crawler/
  |-----leboncoin/
  |-------lbcCrawler.js
  </code></pre>
  
  <p>I want to load the module "mycrawler" in the "app.js", but I get the following error :</p>
  
  <pre><code>Error: Cannot find module 'js/crawler/leboncoin/lbcCrawler.js'
      at Function.Module._resolveFilename (module.js:334:15)
      at Function.Module._load (module.js:273:25)
      at Module.require (module.js:360:17)
      at require (module.js:376:17)
      at window.require (eval at undefined, &lt;anonymous&gt;:1:112)
      at eval (file:///C:/Users/acouty/git/webkit%20fooling/js/ui/app.js:3:10)
  </code></pre>
  
  <p>My files :
  index.html:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;&lt;/title&gt;
      &lt;link rel="stylesheet" href="css/style.css"&gt;
      &lt;script src="js/resources/angular/angular.min.js"&gt;&lt;/script&gt;
      &lt;script src="js/resources/jquery-ui-1.10.3/js/jquery-1.9.1.js"&gt;&lt;/script&gt;
      &lt;script src="js/resources/jquery-ui-1.10.3/js/jquery-ui-1.10.3.custom.min.js"&gt;&lt;/script&gt;
      &lt;script src="js/ui/app.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>app.js</p>
  
  <pre><code>var app = angular.module("app", []);
  
  var cc = require("crawler/leboncoin/lbcCrawler.js");
  </code></pre>
  
  <p>lbcCrawler.js</p>
  
  <pre><code>var simpleCrawler = require("simplecrawler");
  
  var BASE_URL = "http://www.leboncoin.fr/annonces/offres/:region/occasions/?f=a&amp;th=1&amp;q=:item";
  var DEFAULT_REGION = "ile_de_france";
  
  var crawl = function(item, region, results)
  {
      if (_.isUndefined(region) || _.isNull(region))
      {
          region = DEFAULT_REGION;
      }
      console.log("Looking for %s in %s", item, region);
  
      var queryURL = BASE_URL.replace(":region", region).replace(":item", item);
  
      var lbcCrawler = simpleCrawler.crawl(queryURL);
      lbcCrawler.interval(500);
      lbcCrawler.on("fetchComplete", function(queueItem, responseBuffer, response) {
          results.push(queueItem);
      });
  
      lbcCrawler.start();
  }
  </code></pre>
  
  <hr>
  
  <p>EDIT</p>
  
  <p>I tried something else :
  What I want is to <code>use my modules like dependencies</code>. The ui part is for angularJS, and other folders for the node-only part.
  I tried to do something more logcal in my thought : create an index.js and package.json files into lebecoincrawler directory.
  Now, I want a ui/ folder file to require this. But I cannot... </p>
  
  <pre><code>I tried :
  var cc = require("../crawler/leboncoin/lbcCrawler.js");
  var cc = require("./../crawler/leboncoin/lbcCrawler.js");
  var cc = require("./js/crawler/leboncoin/lbcCrawler.js");
  </code></pre>
  
  <p>I can't get it to work and I can't believe it's impossible to do, otherwise I cannot imagine how my projet folder would be.. flat :(.</p>
  
  <hr>
  
  <p>Thanks !</p>