});
    });
  }

function openRemoveCapability(crateName, currentCapabilities, capability) {
  const modalEl = document.getElementById('modal-remove-capability');
  modalEl.style.display = "unset";
  const capabilityEl = document.getElementById("remove-capability");
  capabilityEl.value = capability;
  const closeEl = document.getElementById('modal-remove-capability-close');
  closeEl.addEventListener('click', function() {
    modalEl.style.display = "none";
  });
  const confirmEl = document.getElementById