Wrap fancybox helper with output buffer