new snippets

dojo singleton, class, simple. esri update 3.7.