[javascript] Best way to find if an item is in a JavaScript array?