Updated to ArcGIS JavaScript 3.5