adding js-templating
full template-func support