move requestFriend to friend.js