Removing duplicate triangle.js