ArcGIS API for JavaScript: fs_CopyFeatures_ExportFeatures (MapServer)
Built using the ArcGIS API for JavaScript