Converting to IIFE