remove JS bug

remove Js bug in ie7 and ie8 ,
array indexOf