I am doing a flask project, and I am trying to call a list from flask and use a for loop to process the list in javascript. However, this does not seem to work.