Adding main.js to email page.