code: function updateAggregations(response) {
    if(response.hasOwnProperty('aggregations')) {
      aggregationsBox.textContent = JSON.stringify(response.aggregations,
                                                   null, 2);
      show(aggregationsCard);
    }
    else {
      hide(aggregationsCard);
    }
  }
docs: Update the aggregations