Javascript Get Filename From File Input Python Syntax For If Statement