Simple measuring for the ArcGIS API for JavaScript