Uses esri javascript 3.0