Fixed the issue with S3 not getting the key

The location where you instantiate the AWS.S3() variable matters