get the nearest node DOM element
init config
move code to init size to init.js
move code to init tree layout to init.js
move code to init svg elements to init.js