I've got to say Thank You for introducing me to Adobe ExtendScript Toolkit! I had no idea there was an interactive debugger. Wonderful!
However, I get no such error as you report.
Additionally, I have spent at least an hour using Google to search for "Not well-formed (invalid token)" as it pertains to Adobe Scripting, and have not found anything useful. It does appear that most people who report such a problem are running Windows, and the script works for others. So I feel there's something environmental causing your issue here, not a bug in the syntax of the script.
I do not have access yet to a Windows environment to do any testing there.
Has anyone out there used this script successfully in Windows After Effects?