ArcGIS API for JavaScript: DataService/Metadata (MapServer)
Built using the ArcGIS API for JavaScript