p.items[key];
            addClient(clientsList, client)
          }
          document.getElementById('content').appendChild(clientsList);
        });
      });
    }

    // Formats one line of the clients list.
    function addClient(clientsList, client) {
      var label = document.createElement('li');
      var labelString = document.createTextNode(
          'Ad client for product "' + client.productCode + '" with ID "' +
          client.id + '" was found.');
      label.appendChild(labelString);
   