how to load require.js relative paths
<p>I have an app set up using backbone.  I'm using requirejs to get load files as different modules.  I have the following declared at the top of my app.js file:</p>

<pre><code>var fs = require('fs');
var base = require(__dirname + '/views/base.js');
var template = fs.readFileSync(__dirname + '/views/templates/sampleView.mu', 'utf8');
var SampleCollection = require(__dirname + '../collections/sample.js');
</code></pre>

<p>base and template load fine, but SampleCollection does not because it is actually located one directory up from the current directory where app.js is located.  I get this error when I run my app:  </p>

<pre><code>Error: Cannot find module '/app/collections/sample.js'
</code></pre>

<p>Why can't I use the "../" syntax to move up one directory? And what is the right way to do this?</p>