Javascript Map Key Exists Pythonanywhere