Swapped use of .indexOf on arrays to $.inArray()
Attempt at fixing formatting/indentation
Merge pull request #58 from adam-lynch/needle-haystack

Swapped use of .indexOf on arrays to $.inArray()