Javascript has no file access and so can't do anything that involves any sort of files.
If the images are in a folder on the server then it can be done using any server side language. If the images are on your visitor's computer they would have to upload them first.
Bookmarks