Javascript Get Filename From File Input Python Syntax If Statements