added xml_to_tree.js

implementation of xml_to_html in a html tree version