Handle driver scripts nested within an IIFE