fix js aggregator