Code to use with node.js and AWS S3 Buckets