fixed Array.prototype.indexOf polyfill