docs: function() {
      
      var obj;
      
      // not that the modal viewer is no longer active
      DataSaver.updateValue('modalActive', 'false');
      modalViewer.active = false;
      
      //Add active class to modal
      $('#sg-modal-container').removeClass('active');
      
      // remove the active class from all of the checkbox items
      $('.sg-checkbox').removeClass('active');
      
      // hide the modal
      modalViewer.hide();
      
      // update the wording
      $('#sg-t-patterninfo').html("Show Pattern Info");
      
      // tell the styleguide to close
      obj = JSON.stringify({ 'event': 'patternLab.patternModalClose' });
      document.getElementById('sg-viewport').contentWindow.postMessage(obj, modalViewer.targetOrigin);
      
    }