move js to separate file email.js