Object aggregation for Node.js