rebuild mail/Write.js