check if string not in list javascript