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

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