Fix layerDefs doc snippet with numeric keys

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