a collection of dom utility functions