fixed up treeview, split the demo into index and treeview.html