IE <= 8 does not have indexOf or map on arrays. Fixes #3286
Merge pull request #3287 from lukemelia/index-of-ie-fix

IE <= 8 does not have indexOf or map on arrays. Fixes #3286