An extensible DOM utility for class helper functions