        var results = [
          { endonymLang: 'fr', endonym: 'République Française', name: 'France' },
          { endonymLang: 'de', endonym: 'Deutschland', name: 'Germany' },
          { endonymLang: 'en', endonym: 'Great Britain', name: 'United Kingdom' }
        ]
        syncResults(query
          ? results.filter(function (result) {
              var resultContains = result.name.toLowerCase().indexOf(query.toLowerCase()) !== -1
              var endonymContains = result.endonym.toLowerCase().ind