Graham
The chat function also has a twig file
http://syntax.xtgem.com/_xtgem_templates/xtchat.twig.js upload it by "remote server" to _xtgem_templates and then remove the .js extension
This is a rather complex script as it include javascript ajax and the css