js consolidation