update canvas-triangles.js