Fix - IE8 issue with $.inArray