The tools are in an old Google Code project that I had called "surf city":
https://code.google.com/p/surfcity/
The particular file that you are interested in is Paths2Shapes.js:
https://code.google.com/p/surfcity/source/browse/trunk/demo/releasetools/js/Paths2Shapes.js
I hope this helps, let me know if you have any questions.
The tools are in an old Google Code project that I had called "surf city":
https:/ /code.google. com/p/surfcity/
The particular file that you are interested in is Paths2Shapes.js:
https:/ /code.google. com/p/surfcity/ source/ browse/ trunk/demo/ releasetools/ js/Paths2Shapes .js
I hope this helps, let me know if you have any questions.