update xtemplate for nodejs