Updated bindDOM factory.