index: fix usage of `indexOf` for older browsers
Release 0.1.5