Javascript Use String Variable Assignment In Python Iteration