javascript check for string in list