Added js code that builds an html ul tree structure using an array of items