e;
  const URLSplit = originURL.split("/");

  // If loading the page with application switch to that state
  if (onApplicationScreen()) {
    show_application();
  }

  applyButton.addEventListener("click", function() {
    show_application();
    window.history.pushState({}, document.title, `${window.location.pathname}/application`);
  })

  backDetails.addEventListener("click", function(e) {
    e.preventDefault();
    hide_application();
    const currentPath = window.location.pathname;
    const return