Logic full JS templating