ArcGIS API for JavaScript: AGSUtilities (MapServer)

Built using the ArcGIS API for JavaScript