Minor Polygon.js cleanup