Updated to v. 3.8 of the ArcGIS API for JavaScript.