javascript if string contains character