Arcgis Javascript Api posts

Using Dynamic Layers with the new ArcGIS Online demographic service

ArcGIS Online has retired it's existing cached demographic services in favor of a new service which requires an AGOL subscription and will consume credits. The new service is not cached into separate demographic variables (e.g. Med Household Income) but it does contain all the information needed to recreate/render the same maps through the use of LayerDrawingOptions and dynamic layers. I had a need to consume this new service and thought I'd share a sample that might help someone else.