use indexOf shim

Array.prototype.indexOf is not available in ie8, use the already
available shim instead
Merge pull request #59 from NetForce1/indexOf-shim

use indexOf shim