var files = ["report-adgroup-273-jq.json",
"report-adgroup-273-raw-processed-jq.json"];
var datas = {};
var filesLeft = files.length;
files.forEach(function(file) {
$.getJSON(file, {}, function(d) {
datas[file] = d;
filesLeft -= 1;
if (filesLeft == 0) {
drawReport(datas);
}
});
});