I love FF and use it daily. But honestly, the "some random tab has runaway javascript" is as much of a problem on FF as it is on Chrome. If you leave a JS-heavy site open long enough, sooner or later you'll have some runaway JS come and bite you in the battery. The only complete solution I've got is... to turn it off and back on again. The entire browser, not just the offending tab.