Removed ajax/mail.js and added functions in commonActions.js