[JavaScript] for delaunay