refactor test to test s3
refactor response JSON object
add CORS response headers
refactor schema