Execute client-side JS only after page is completely loaded
WIP - construct JSON representation of a folder