Update Triangle.js