Revert "Update aggregator.js"

This reverts commit ee1a02bb642efa6a2424c28de64b15192def5248.