The most basic way to use Lozza in a web page is to load it as a Web Worker, post UCI commands to it with postMessage and display each reply line as it arrives in onmessage.
postMessage
onmessage