mailer.js: fix xs initialization