Add some dom helper functions