Prepare ajax connexion