     const params = { To: "client" }; // You can pass parameters to the TwiML App
        device.connect(params);
      };

      // Hang up the call
      document.getElementById("hangupButton").onclick = () => {
        device.disconnectAll();
      };

      // Initialize device on load
      window.onload = initializeDevice;
    </script>
  </body>
</html>
