another IE bug fix

use `indexof` instead of `Array#indexOf`