fixed geojson to esri to work with polygons and updated to be AMD compliant