add IIFE to files when passing functions