IE8 JavaScript fixes.