Add One Element To Array Javascript Iterations In Python