Improving IE8 compatibility