text: require(['bootstrap'], function () {
      window.location.rootpath = window.location.pathname;
  
      require(['backbone', 'marionette', 'ejs', 'controllers/offline'], function (Backbone, Marionette, EJS, OfflineController) {
          Backbone.Marionette.Renderer.render = function(template, data) {
              return template.render(data);
          };
  
          var OfflineApp = new Marionette.Application();
  
          OfflineApp.addRegions({
              mainRegion: "#box"
          });
  
          OfflineApp.addInitializer(function(options){
              new OfflineController({app: OfflineApp}).login();
          });
  
          OfflineApp.addInitializer(function(options){
              Backbone.history.start({pushState: true, root: window.location.rootpath});
          });
  
          OfflineApp.start();
      });
  });