code: function buildHTML(segments) {
  		var html = '';
  		for (var i=0; i<segments.length; i++) {
  			html += buildHTMLForSegment(segments[i]);
  		}
  		return html;
  	}
docs: Build a concatenated HTML string for an array of segments