Save templateString instead of dom ref for cached script templates (IE bug)