misc changes in demo.html
added saveCustomPolygon()