Update shim to match changes in chat.html