clean & correct jquery inArray