Friends
The ESRI Javascript example below uses Window.grid and Window.map.
They makes a New Map with Window.map and add layers to it with map.addlayer.
Confusing...at least for me. Dojo must be involved.
dgrid | ArcGIS API for JavaScript
Thanks
Keith