add main.js to template edit md profile