updating IE detection function to fix IE11 issues