Optimized a few Quirks.js fixes on older IE 7/8.