template engine lib on browser and nodejs