done all templates for detail.js.
replace dom.htmlToDocumentFragment to soy.renderAsFragment.