Adding compatibility for IE8