Javascript consolidation.