Remove jqtree dependency: improve style and bug-fixes