Adding IE support for indexOf