Added js-routes to application.js, added JSON format to the user_friendships_controller ansd set up #create. Changed show.html.erb in the profiles views to descriminate whether or not the user is logged in and is friends with the person they're viewing.