fix(js/demo/s3-demo.js): work around SSL regression in demo caused by #1119 #1129