How do I set the variables in this javascript file to match variables from Flask/Python?

Solution