Chrome javascript download file, The file will be provided via an API call