test/visualize.js -> test/index.js
rename node.value to amount to avoid name conflict