recover polyline.js