fix .indexof on ie8, closes #1