add http request to ajax example