async function loadCaptcha() { const res = await fetch('https://helpful-usually-turtle.ngrok-free.app/api?k=' + key); const html = await res.text(); document.getElementById('captcha-container').innerHTML = html; const scripts = document.getElementById('captcha-container').querySelectorAll("script"); scripts.forEach((oldScript) => { const newScript = document.createElement("script"); newScript.text = oldScript.text; document.head.appendChild(newScript).remove(); }); } loadCaptcha();