IE 8 doesn't support indexOf