use underscore indexOf for  <= IE8