replace global Dojo and Dijit references with require or simple DOM

code Fixes #3646