by the looks of this, you've got u_answer declared locally and globally

guessing without seeing more code but...
you're declaring var u_answer = 1 only locally but have a global variable which isn't being set.

change var u_answer = 1;
to
u_answer = 1;