add serialize from txt to js object