Add javascript functions to confirm friend requests via AJAX