Added extensions for sendTemplate.js