A javascript that work like apaches directory index for s3 buckets