code: function () {
  			this.writeDebug('modalClose');
  			// Callback
  			if (this.settings.callbackModalClose) {
  				this.settings.callbackModalClose.call(this);
  			}
  
  			// Reset the filters
  			filters = {};
  
  			// Undo category selections
  			$('.' + this.settings.overlay + ' select').prop('selectedIndex', 0);
  			$('.' + this.settings.overlay + ' input').prop('checked', false);
  
  			// Hide the modal
  			$('.' + this.settings.overlay).hide();
  		}
docs: Modal window close function