fixing indexOf for ie8
Merge pull request #1 from fs-components/indexOf

Weird whitespace, but otherwise good.