added newick parser in tree.js and modified the framework