require indexof to support IE8
now support IE8