Global 'window' variable made local