Converting HTML file to JSON  and representing the JSON as an interactive tree view