javascript check for string in array of strings