And leave the Web as a set of static pages like in the nineties? Web applications are desirable, if only because they're multi-platform. Javascript is what saved us from those slow and not so safe Java applets (and Flash, Silverlight, which would be everywhere without Ajax).
Anyway, malwares would have spread through downloaded executables (e-mail attachments, etc). Is Javascript even helpful to most malwares?