added dojo/dom. also cleaning up on.once handlers to prevent possible memory leaks