Javascript global variable not updating

visit shbcf.ru