fix bug: IE8 and below doesn't support Array.pr...

IE8 and below does not support Array.prototype.indexOf(), use instead: $.inArray()