Extract DOM manipulation functions into their own ns