javascript check if list contains string