updated to esri js api 3.8