fix for $.fn.extend
fix for $.inArray