DOM framework for node and browser