remove unnecessary IIFE from trusted scripts