 function () {
          const registerModal = document.getElementById("registerModal");
          const loginModal = document.getElementById("myModal");
          const registerLink = document.getElementById("registerLink");
          const loginLink = document.getElementById("loginLink");

          // Event listener for the register link
          registerLink.addEventListener("click", function (event) {
            event.preventDefault();
            loginModal.style.display = "none";
            regist