Mails.js and server.js update fix