Merge pull request #1 from piaoger/master

- Make it compatible with Node.js
- Fix bug in Tess2.tesselate(), using contours instead of opts.contours