Fix syntax errors in chatterbox.js