Javascript Get Filename From File Input Python Syntax If Else Statement