Wrapper for JS template rendering