On the step with the doors and the lier guard, there is a trick to know which guard is lying by asking one question only. This is due to the fact that you use coffeescript.
Maybe you should whitelist the parameters allowed for the questions, to avoid "cheating".