Also, are your sure that it is going into the IF block of your javascript, did you verify that.