Add iframe-resize code to template