changed main.js location to fix relative path issues
added mail.js to the root of the codebase