I run it in a chromium, I launch a HTTP server ?
In the end I want to make a desktop GUI and I would like a solution which is not too clunky