> There are websites that genuinely need to run some code, like webmails,
Not really, not if you think about it. Webmail doesn't need anything more than html(<5)+css.
> online trading platforms
Ditto.
> online games
Honestly, I think running webgames in a super-sandboxed flash (or similar) runtime is the best thing to do. Again, no use for js on the web.