You can write HTML that includes javascript (bundled with all kinds of JS libraries if you need). But you aren't writing ruby code that turns into something that directly executes in the browser.
Although with WASM I'm sure you could write ruby that also runs in the browser (no one really does this AFAIK).