It doesn't matter if it is local or remote. Let http handle the requests, let javascript handle the response.