Polygon Near-Linear Triangulation in JavaScript (simple polygons with holes for now)