ArcGIS API for Javascript mapping application with ArcGIS Online functionality