Updated friends.js, login.js structure.