Automatically replaces content with template content at the moment the model data becomes available. Fills in support for at least Safari, who doesn't have <template> support.