Javascript Loop Through Files In A Folder