use indexof component for ie8 and below

In IE8 and below `[].indexOf` does not exist.

It causes the error `object doesn't support this property or method`

Use the [indexof component](https://github.com/component/indexof)

Existing tests from @ruxkor cover this.

`make test` and `make test-browser` are passing.

manually tested in chrome latest and ie7-10