added in checking to the IE script