use xtemplate on browser