AMD version of Dynamic Layer List Sample https://developers.arcgis.com/javascript/jssamples/map_dynamiclayerlist.html