fix download.js