Added IE8 and lower compability check