added invoice.js, invoice.ejs, profile.js and made changes to associated files behavior