Corrected Use of jquery.inArray()

See #1