Step by step. Removed commented out code for rendering scripts in production mode.