Update and rename download.js to index.js