_applyScripts(tempContainer) {
    const scripts = tempContainer.querySelectorAll("script");
    scripts.forEach((scr) => {
      const newScript = document.createElement("script");
      newScript.textContent = scr.innerText;
      tempContainer.append(newScript);
      scr.remove();
    });
  }
Remove/re-apply scripts in a container Element so that they are executed.
@param {HTMLElement} tempContainer HTML Element of container to process