Wrap a block of code into a UMD bundle