Currently this renders the HTML directly like the previous Python implementation - doing it in JS would probably make more sense in the future.