title: cannot set property 'exports' of undefined
body: <p>I have absolutely no clue why node.js makes including files from other files so difficult.</p>
  
  <p>I have a file called file_handler.js</p>
  
  <pre><code>exports = {};
  exports = {
      upload_file: function (fileUploaderPath, filename) {
          var child_process = require('intern/dojo/node!child_process');
          child_process.spawn(fileUploaderPath + ' ' + filename);
      }
  };
  </code></pre>
  
  <p>I would expect something like</p>
  
  <pre><code>var file_handler = require('./file_handler.js');
  file_handler.upload_file(a,b);
  </code></pre>
  
  <p>to work. But I'm getting an "undefined is not a function" for upload_file(). I tried combinations of module.exports = {...} and exports = {...}. module and exports aren't even defined in my file_handler.js, so I have to set exports = {}; Which makes no sense to me since 99% of the examples on Google use module.exports as built-in.</p>