Python Write Text Array To Object Js W3schools