ArcGIS API for JavaScript: G_Tools/WaterIndexAreas (MapServer)
Built using the ArcGIS API for JavaScript