Attempt to add backward compatibility for IE8