Set the ajax communication with the server