Optimze downloader for JavaScript file creation