ArcGIS API for JavaScript: WATER/wLateralFitting (MapServer)
Built using the ArcGIS API for JavaScript