docs: function(target, template) {
  
          if(!template) {
              template = this.getTemplate();
          }
  
          // Make a deep copy, so we don't accidentally modify
          // template elements in-place
          var elem = template.clone(false, true);
  
          this.buildControls(elem, target);
  
          // Make sure we are visible (HTML5 way, CSS way)
          // and clean up the template id if we managed to copy it around
          elem.removeAttr("hidden id");
  
          elem.show();
  
          target.replaceWith(elem);
      }