Spying on dojo/dom