ArcGIS API for JavaScript: Hydrology/RoutingElements (MapServer)
Built using the ArcGIS API for JavaScript