code: function MergeRowsWithHeaders(obj1, obj2) {
    for(var p in obj2){
      if(obj1[p] instanceof Array && obj1[p] instanceof Array){
        obj1[p] = obj1[p].concat(obj2[p])
      } else {
        obj1[p] = obj2[p]
      }
    }
    return obj1;
  }
docs: small helper function which merged two objects into one