Rename "$window" into "$global" (from Esquire).