javascript check if string contains characters from array