   })
    }
  }

  window.addEventListener('DOMContentLoaded', (event) => {
    const searchInput = document.querySelector(".js-careers__search-input");
    const urlParams = new URLSearchParams(window.location.search);
    searchInput.addEventListener('input', e => {
      searchTerm = e.target.value;
      showAutoComplete(searchTerm);
    });   
    showAutoComplete("");
    const querySearchText = urlParams.get("search");
    ShowJobList(querySearchText)
  });

  document.addEventListener('click', close