update app.js-> added sendgrid function
fixed merge of app.js