   .then((response) => {
          var collectionSelector =
            document.getElementById("collectionSelector");
          collectionSelector.innerHTML = "";

          response.forEach((collection) => {
            el_collection = document.createElement("option");
            el_collection.innerHTML = collection;
            collectionSelector.appendChild(el_collection);
          });

          updateDumpButton();
        })
        .catch((err) => {
          console.log(e);
        });

      func