Pass global to IIFE