Create html index, load empty script
Initial version, partially working, some bugs

Gets first-level children, does not seem to be working recursively at
the moment.
Fully functioning implementation (recursive)

Added inner function in order to create closure of outer functions
return array (and not overwrite it in each recursion).