ren.item(i));
    }
  }

  function onClickRemoveVersion(version) {
    const modalEl = document.getElementById('modal-remove-version');
    modalEl.style.display = "unset";
    const versionEl = document.getElementById("remove-version-field");
    versionEl.value = `${version.index.name}:${version.index.vers}`;
    const closeEl = document.getElementById('modal-remove-version-close');
    closeEl.addEventListener('click', function() {
      modalEl.style.display = "none";
    });
    const confirmEl = docu