This should work for both IE8 and the rest of the browsers