code: function showModal(saveMessages, errorMessage) {
      $(document.body).append($modal);
      $modal.find(".save-messages")[0].innerHTML = saveMessages;
      $modal.find(".error-message")[0].textContent = errorMessage;
      $modal.on("hide.bs.modal.modal", function hidden() {
        $modal.remove();
        window.location.reload();
      });
      $modal.modal();
    }
docs: So that we can issue clearTimeout elsewhere.