Added a compatibility clause for IE8.