Update triangle.js