Update points2polygons.js