>It's of course the de-facto language for interactive display in browsers
This is it, more or less.
It is far, far easier to build an app like this where you want a plethora of users as a web application than a native one, for instance.
For anything JavaScript as a runtime / language is missing, WASM can boost as well. For math and data science, WASM is a natural choice for any missing pieces