Amazon S3 uploader using CORS and jQuery