Working on replacement for jQuery tmplItem()