code: function(nameOrDir, cb) {
      var errorPrefix, onError, onSuccess;
  
      // Strip any leading slash
      if (nameOrDir && nameOrDir.substr(0, 1) === '/') {
        nameOrDir = nameOrDir.substr(1);
      }
  
      // Check for errors. Note this feature requires jQuery at the moment
      errorPrefix = 'SocketStream Error: The ss.load.code() command ';
      if (!jQuery) {
        return console.error(errorPrefix + 'requires jQuery to be present');
      }
      if (!nameOrDir) {
        return console.error(errorPrefix + 'requires a directory to load. Specify it as the first argument. '+
          'E.g. The ss.load.code(\'/mail\',cb) will load code in /client/code/mail');
      }
      if (!cb) {
        return console.error(errorPrefix + 'requires a callback. Specify it as the last argument');
      }
  
      // If we've loaded this module or package before, callback right away
      if (async.loaded[nameOrDir]) {
        return cb();
      }
  
      // Else, register callback and use EE to prevent multiple reqs for the same mod/package to the server before the first responds
      async.loading.once(nameOrDir, cb);
  
      // Retrieve module or directory of modules from the server if this is the first request
      if (async.loading.listeners(nameOrDir).length === 1) {
        onError = function() {
          console.error('SocketStream Error: Could not asynchronously load ' + nameOrDir);
          return console.log(arguments);
        };
        onSuccess = function() {
          async.loaded[nameOrDir] = true;
          return async.loading.emit(nameOrDir);
        };
  
        // Send request to server
        return $.ajax({
          url: '/assets/ondemand/' + nameOrDir,
          type: 'GET',
          cache: false,
          dataType: 'script',
          success: onSuccess,
          error: onError
        });
      }
    }
docs: Enables asynchronous loading of additional client-side modules Pass the name of a module file (complete with file extension), or name of a directory in /client/code