Python Change String Array In Javascript Mdn For Loop