Set templateEngine on template options

Apply an instance of the TemplateEngine to the options so it won't fail
to render in knockout executeTemplate(). Right now it won’t render
anything because TemplateEngine is undefined