Modified polygon.html to work with current set up