Create a global iframe function and template helper.