ArcGIS API for JavaScript: System/DynamicMappingHost (MapServer)
Built using the ArcGIS API for JavaScript