JavaScript port of the MongoDB aggregation framework.