title: Including Helper Functions in Separate JS File (Client-Side)
body: <p>First off, I know this is probably pretty low-level for the most part, I'm sorry for not really trying anything before asking this.</p>
  
  <p>What methods would you guys suggest for including helper functions in separate files?  I'm used to node.js's <code>module</code> interface for doing this, but I'm not 100% on how to achieve similar functionality client-side.  </p>
  
  <p>Small example of what I'd like to abstract into its own file:</p>
  
  <pre><code>var helpers = (function() {
    var _helpers = {};
  
    _helpers.buildDateFromDelta = function(delta) {
      date = new Date();
      date.setDate(date.getDate() - delta);
      date.setHours(0, 0, 0, 0);
  
      return date;
    };
  
    return _helpers;
  })();
  </code></pre>