JS script to create a photo gallery from folder.