Fixing array indexOf issues with older IE versions.