Fixing addExtras syntax, and using function from S3 config.js