triangulation js