PopularQueryRenderer = function(container) {
  this.container = container;
};

PopularQueryRenderer.prototype.render = function(queries) {
  for (var i = 0; i < queries.popularQueries.length; i++) {
    var a = document.createElement("a");
    a.setAttribute("href", queries.popularQueries[i].href);
    a.appendChild(document.createTextNode(queries.popularQueries[i].query));
    this.container.appendChild(a);
    this.container.appendChild(document.createTextNode(" "));    
  }  
};
