use local indexOf instead of Array indexOf (missing in ie)
Merge pull request #254 from isse/ie-indexof

use local indexOf instead of Array indexOf (missing in ie)