Update polyline.js