updated to ArcGIS JS API 3.7