create the directory struct and add init js