Javascript : folders structure init