Add polyfill for indexOf on IE8