cachaito
9/9/2014 - 10:20 PM

Module pattern

var BC = {};

BC.util = (function (BC) {
  var util = {},
      foo; // private variable

  // public
  util.someFunction = function () {};

  // private
  function someOther() {}

  return util;
}(BC));