Change $window gvar to $global (change in Opal reference)