this is the correct version of the js file for image downloader