Thank you! The "undefined" lines happen because I have shortened text to one-liners... I have removed those that happen at the beginning of the game, but in the more frustrating rooms the computer becomes increasingly incoherent :)
Have you tried to remove completely the strings or to leave empty strings? (like ``, or ` `)
Because the undefined is usually a javascript way of saying "I'm looking for this, but it's not there". Using empty strings could "solve" the issue without modifying the code, I hope.
Yes, I have left empty strings for example in death screens, and other times I've spread the few words over a few lines... But sometimes I preferred undefined errors!