I don't think you can avoid JavaScript even with WASM - and WASM in it's current form is, for some languages, a worse compilation target than JavaScript.
Since the beginning of computers, it should be trivial to distribute programs online efficiently.
The web is already platform dependent, but it also need to be fast and language independent.