Update S3 API
Fix ESLint warnings