Javascript reads the files in the folder and outputs