Python Array Push Value Into Array Js Functions