node.js frontend to download s3 objects securely