Wrap JS code in IIFE