Add recursive javascript function to create nested HTML for entry tree, with nested divs indicating tree structure.