ArcGIS API for JavaScript: FeatureDatasets/Structure (MapServer)

Built using the ArcGIS API for JavaScript