Fixing formatting in the JavaScript client