Path = currentPath.substring(0, currentPath.lastIndexOf('/'));
    window.history.pushState({}, document.title, returnPath);
  })

  // When the "Back to list" link is clicked handle transitioning to the JD
  window.addEventListener('popstate', function (event) {
    if(!onApplicationScreen()) {
      hide_application();
    }
  });

  function show_application() {
    backRoles.classList.add("u-hide");
    jobDetails.classList.add("u-hide");
    applicationForm.classList.remove("u-hide");
    backDetails.c