message: fix template system
diff: @@ -3100,7 +3100,8 @@ jsxc.gui.template.get = function(name, bid, msg) {
  // prevent 404
  ret = ret.replace(/\{\{root\}\}/g, ph.root);
  - ret = $(ret);
  + // encapsulate template to find all desired elements in the next step
  + ret = $('<div>' + ret + '</div>');
  ret.find('[data-var]').each(function() {
  var key = $(this).attr('data-var');
  @@ -3113,6 +3114,9 @@ jsxc.gui.template.get = function(name, bid, msg) {
  }
  });
  + // remove encapsulation
  + ret = ret.find('>*');
  +
  ret.localize(ph);
  return ret;
  