anonymize displayCode() to remove global var