How to trigger a file download when clicking an HTML button or JavaScript?