work in progress on downloader.js