I need to build a gallery of files, scan a directory of my server and generate a preview of each file in the HTML page, where the user clicks and preview the preview, helping to choose which one to download. Does anyone know of a Javascript plugin or function that does this, so that it is updated when I delete or add a new file?