IE 8 fixes
IE 9 compatibility