Validierungsproblem bei js (map)