create tree like html code from json