virtual dom for the browser and node.js