Javascript object becomes undefined when appended to another object

join shbcf.ru