Clone of http://sourceforge.net/projects/jsclipper