JS consolidation