corrected bugs in ~/public/js/views/profile and ~/public/js/views/addcontact.js