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