Shim for ECMAScript 5 Array.prototype.indexOf