get friends and update friends AJAX