Created a function "assembleTree" cleared a away some junk
from detail.html.
Functioning minimally