Added ie8 support for indexOf. Nice.