Rewrite amd-to-iife to maintain formatting