Fixed indexOf on Array for IE