Update templates for main.js and renderer.js