replace global Dojo and Dijit references with require or simple DOM
code Fixes #3646
Merge pull request #3805 from maqetta/3646-amd

replace global Dojo and Dijit references with require or simple DOM