use indexof component for ie8 and below