IE8 Javascript fixes.