Implement AJAX on user friendship.