title: brunch: Cannot find module "initialize" from "/"
body: <p>I am desparating with brunch/node.js.
  I have a project with a few simple pages, using brunch, backbone.js, jade, and coffeescript.</p>
  
  <p>app/assets/index.html has the following scripts included:</p>
  
  <pre><code>&lt;script src="data/vendor.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="data/app.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="data/data.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;require('initialize');&lt;/script&gt;
  </code></pre>
  
  <p>brunch-config.coffee:</p>
  
  <pre><code>exports.config =
    files:
      javascripts:
        defaultExtension: 'coffee'
        joinTo:
          'data/app.js': /^app/
          'data/vendor.js': /^vendor/
        order:
          before: [
            'vendor/scripts/jquery-1.11.1.js',
            'vendor/scripts/underscore.js',
            'vendor/scripts/backbone-1.1.2-full.js',
          ]
    stylesheets:
      joinTo:
        'data/app.css': /^app\/styles/
    templates:
      defaultExtension: 'jade',
      joinTo:
        'data/app.js': /^app\/templates/
  </code></pre>
  
  <p>All the coffee files are compiled correctly and merged into <em>vendor.js</em> and <em>app.js</em>, and I can find the (javascript'ed) <em>initialize.coffee</em> code with grep in <em>app.js</em>.
  app/initialize.coffee:</p>
  
  <pre><code># The function called from index.html
  $(document).ready -&gt;
    app = require('application')
    app.initialize()
    return
  </code></pre>
  
  <p>I modelled this after the spa-bookmarks tutorial. But When I launch the brunch server, my Js browser console always tells me:</p>
  
  <pre><code>TypeError: _ is undefined
  Error: Cannot find module "./initialize" from "/"
  </code></pre>
  
  <p>The TypeError doesn't bother me by now. But I can't find out <em>why the heck</em> the <em>initialize</em> module is not called.</p>
  
  <p>I must admit that I am very new to Js and node.js, and have not fully understood (better: have no clue of) the way Js modules are bundled together and called.</p>
  
  <p>I tried many possible variations, but did not get more out of it than this error message.
  Please help.</p>