title: How to use require for organizing my code
body: <p>I'm building my cloud code and in need of organizing it. For example I want to move a bunch of methods to a <code>util.js</code> file. So I did, and made sure to deploy it. It's definitely on the cloud for my app. </p>
  
  <p>The question is how to use it? I tried putting </p>
  
  <pre><code>require('cloud/util.js');
  </code></pre>
  
  <p>at the top of my <code>main.js</code> class, and calling the <code>filter</code> method within it, but I get a <code>filter is not defined</code> error. </p>
  
  <p>The same thing happens when I try this: </p>
  
  <pre><code>var util = require('cloud/util.js');
  </code></pre>
  
  <p>either at the top of the <code>main.js</code>, or inside my cloud method. </p>
  
  <p>I also tried calling the filter method like this: </p>
  
  <pre><code>util.filter(...)
  </code></pre>
  
  <p>but I get a <code>TypeError: Object #&lt;Object&gt; has no method 'filter'</code></p>
  
  <p>So what's the correct syntax? </p>