SOLUTION: As others have indicated, this appears to be an issue with the python code translating to javascript. I had a friend who is much better than me at coding review my code and found that I had put in a blank text component and that was the issue. I went in and put a space in the text field of that component and everything worked!