D3 Drag Is Not A Function, js and now I retrieved the area of the polygon using d3.