Added IE8 compatibility