Widget.js: use native methods rather than dojo/dom*.