docs: function () {
              config = scope.getConfig();
              api = config.api;
  
              // create a unique CSS namespace for this viewer instance
              config.namespace = CSS_CLASS_VIEWER + '-' + config.id;
  
              // Setup container
              $el = config.$el;
  
              // add crocodoc viewer and namespace classes
              $el.addClass(CSS_CLASS_VIEWER);
              $el.addClass(config.namespace);
  
              // add a / to the end of the base url if necessary
              if (config.url) {
                  if (!/\/$/.test(config.url)) {
                      config.url += '/';
                  }
              } else {
                  throw new Error('no URL given for viewer assets');
              }
  
              // make the url absolute
              config.url = scope.getUtility('url').makeAbsolute(config.url);
  
              //if useSVG hasn't been set, default to true
              if (config.useSVG === undefined) {
                  config.useSVG = true;
              }
  
              validateQueryParams();
              initViewerHTML();
              initPlugins();
          }