Yes. And the latest iteration of JavaScript/canvas has had longevity, but it doesn’t have the robustness of a JPEG. What you describe would be interesting.
I’d like the standardization to be slightly lower in the abstraction tower. If people want JS or whatever, they can build it on top of WASM. Using JS as a stable basis is.. insane (but practical).