Check out this link for a working example:
It's functioning perfectly.
I then copied the HTML and tried running it on my local Apache server.
Surprisingly, it worked!
However, when I attempted to load the same dojo.js file on my web server, it failed to work...!!?
(I loaded the dojo.js file on my local web server instead of ajax.googleapis.com)
Here are details of my file structure, HTML code, and errors encountered.