add drawPolygon.js to the public js folder