added a simple three.js test
 - split contour computation to its own file