More readable way to do this?
renderHtmlTable(function(tableItems) {
var tableArray,_i,item,_len;
tableArray = ['<table id = sampleTable ><thead><tr>' +
'<th>Header 1</th>' +
'<th>Header 2</th>' +
'<th>Header 3</th>' +
'<th>Header 4</th>' +
'</tr></thead>'];
for (_i = 0, _len = tableItems.length; _i < _len; _i++) {
item = tableItems[_i];
tableArray.push('<tr><td>' + item.foo + '</td>' +
'<td>' + item.bar + '</td>' +
'<td>' + item.baz + '</td>' +
'<td>' + item.qux + '</td></tr>')
}
tableArray.push('</table>');
($('#TableDiv')).html(function() {
return lessonArray.join("");
});