updated to ArcGIS Javascript API version 3.4