Directory Tree to JavaScript JSON Object

Convert a directory tree to a JavaScript object by pasting the tree contents below.