old_contents: require([
      "hr/utils",
      "hr/dom",
      "hr/promise",
      "hr/hr",
      "hr/args",
      "resources/init",
      "core/application",
      "core/packages",
      "utils/dialogs",
      "models/file"
  ], function(_, $, Q, hr, args, resources, app, packages) {
  
      window.codebox = {
          require: require
      };
  
  
      resources()
      .then(app.run.bind(app))
      .then(packages.loadAll.bind(packages))
      //.then(app.router.start.bind(app.router));
  });
  
new_contents: require([
      "hr/utils",
      "hr/dom",
      "hr/promise",
      "hr/hr",
      "hr/args",
      "resources/init",
      "core/application",
      "core/packages",
      "utils/dialogs",
      "models/file"
  ], function(_, $, Q, hr, args, resources, app, packages) {
  
      window.codebox = {
          require: require,
          app: app
      };
  
  
      resources()
      .then(app.run.bind(app))
      .then(packages.loadAll.bind(packages))
      //.then(app.router.start.bind(app.router));
  });
  
subject: Add app object to global codebox