Add IE8 support for indexOf.