Use 'global' instead of window