Just some useful ESRI JavaScript API code snippets...