use indexof library

for ie8