Replaced Array.indexOf with prototype Array._indexOf (which will use jQuery's $.inArray)