fixing app.js due to error with add friend.