Consolidated the javascript compilation process.