Recently, I started using Firefox plugin NoSript which stops javascript execution on random websites. It makes browsing little better.
I started using it when I found out one tab was eating 2GB of RAM. I think in todays world its very important that you allow only selected trusted websites to run Javascript!