[FIX] mail: minor potential problem with JavaScript module loading