Client Side S3 CORS Upload for Amazon S3 - CoffeeScript and JavaScript Class