working on template fix
restore main.js