update main.js - populate svg with polygons