Download This Working Example of a custom Dojo Widget (dojo31) - unzip then open test.html in a web served browser page.
Thanks to www.richardrodger.com - see this post for doc
Your dojo 41 directory structure needs to look like the below.
yourWebFolder/test_41.html
yourWebFolder/dojo/dojo.js
yourWebFolder/acme
See annotations in pages where 41 example was modified to path to match a "typical" - ie non-testing structure.