Fixed rendering in client.js