Python Convert Array String To Integer Javascript For Loop