Prevents leak of global

Uses an IIFE.