Handlebars = {
  _globalHelpers: {},

  registerHelper: function (name, func) {
    this._globalHelpers[name] = func;
  }
};

@@ -118,8 +118,409 @@
 %0A  %7D%0A%7D;%0A
+%0A// Utility to HTML-escape a string.%0AHandlebars._escape = (function() %7B%0A  var escape_map = %7B%0A    %22%3C%22: %22&lt;%22,%0A    %22%3E%22: %22&gt;%22,%0A    '%22': %22&quot;%22,%0A    %22'%22: %22&#x27;%22,%0A    %22%60%22: %22&#x60;%22, /* IE allows backtick-delimited attributes?? */%0A    %22&%22: %22&amp;%22%0A  %7D;%0A  var escape_one = function(c) %7B%0A    return escape_map%5Bc%5D;%0A  %7D;%0A%0A  return function (x) %7B%0A    return x.replace(/%5B&%3C%3E%22'%60%5D/g, escape_one);%0A  %7D;%0A%7D)();%0A

bring back Handlebars._escape