"If what you care about is compatibility with Apple/MS browsers, then generate JavaScript from your intermediate bitcode/bytecode"
Which is precisely what the Mozilla Emscripten project does.
Which is precisely what the Mozilla Emscripten project does.
[high level language] -> [low level representation] -> [high level language] -> [low level representation] -> [execution]
This is ridiculous to aim for as your first-order target.