Python to JS Code Error

Yes, I thought that might be something that wouldn’t translate.