remove window from parameters of IIFE