Fix layerDef doc snippet with numeric keys

Can't use numeric keys for javascript objects, string 
representation of layerId works fine.