Update index.js

Currently there is a confusion on AWS S3 buckets with '/' and '\' for paths. The change I have added fixes that