GLU tesselator ported to Javascript, performs polygon boolean operations and triangulation
github.com/memononen/tess2.js
memononen/tess2.js