Consolidate all JS code blocks.