getFriendsList from anonymous to object literal