'indexOf' method for IE <= v.8