Another attack that unplugging your computer and going to live in the woods would have defeated.
More and more of the web is built on javascript, so opting out of a chunk of what the web runs on will naturally limit your exposure to the dangers (and joys) of the web.