use $.inArray for IE<=8 support.  Issue #194