Arnav and I are chatting -- we think we're getting closer.  Arnav is just trying this:
{{s3.js_global.append(”'S3.chat_url=http://%s/http-bind”' % settings.get_chat_server())}}