Removed mxui from global object comment as domMx should be used. Added dojo array module to replace dojo.forEach