NoScript; My browser only runs trusted code on my system. And if you are running an updated browser without NoScript or some equivalent, that's very dangerous.
But since browser JavaScript engines are some of the best sandboxes in existence due to being constantly tested and updated, not using NoScript really isn't dangerous. Sure, disabling JS reduces the amount of risk, but that amount is already low enough to be tolerable for most people.