now client draws polyline after server returns JSON path.