If you'd written it in Javascript you could have hosted it on Github Pages.
You can use Pyodide for that, no need to stoop to JS.