Python Push Pop Array Javascript Length Text