The tree in this demo is defined using HTML. The actual HTML code is visible here (or you can look at the page source):
JavaScript code used to initialize tree (after the library was loaded) is: