return ajax from httpclient