Created javascript object structure from file structure