fix error for IE8

IE8 do not supports Array.properties.indexOf