merging polygons with node.js