http://code.google.com/p/poly2tri/source/browse/src/js/poly2tri.js?repo=javascript&r=5b04ba01b37359bb25f5dedb87bcd95e07d0937a