Use underscore's indexOf, as IE8 doesn't have it
Merge pull request #71357 from theinternetftw/fix-indexof-not-available

Use underscore's indexOf, as IE8 doesn't have it built in