Converted cartesian coordinates into screen coordinates for rendering in fabric.js. Drew origin and centroid of polygon. Centroid for polygon. Various different attempts to sort a set of points for a concave polygon. arctan method didn't work, so I used a simpler approach.