It makes much more sense to use a good language (Kotlin, Rust, Java) and transpile to JavaScript. There's already great tooling for it.
Transpiling to JS is ready for production and widely compatible with all browsers already.