use indexOf shim

Array.prototype.indexOf is not available in ie8, use the already
available shim instead