Fix inArray test for jQuery
Sorry i wrote it in the train :)