Server now downloads the HTML file via new endpoint but the parsing logic now happens in
the browser. The reason for this is to have a way same code for both
environments.
If the JavaScript is disabled, it's still possible to call the previous
endpoint and download the file from the server.