Build the right tree of nodes in the browser.