added browser/client side templating support