demo how to download files and display progress (pure js)