split poly2tri.js source into several modules in line with c++ version
use uglify-js to provide a minified build