Added util.dom() and used it everywhere