fixed a syntax problem in download.js