Converted addFriend POST request to JQuery $.ajax