Added email capability in email.js