anchor.diff:  
   Discourse.Emoji.search = search;
   
  +
   var emojiHash = {};
   emoji.forEach(function(code){
     emojiHash[code] = true;
  
positive.code:     url = _extendedEmoji[code];
    }
  
    if (!url && emojiHash.hasOwnProperty(code)) {
      url = Discourse.getURL('/plugins/emoji/images/' + code + '.png');
    }
  
    if(url && url[0] !== 'h' && Discourse.CDN) {
      url = Discourse.CDN + url;
    }
  
    return url;
  
negative.code: // TODO @robin to move this whole thing to es6
  Discourse.Emoji = {};
  // bump up this number to expire all emojis
  Discourse.Emoji.ImageVersion = "0"
  
  var emoji = <%= Dir.glob(File.expand_path("../../../public/images/*.png", __FILE__)).map{|f| File.basename(f).split(".")[0]}.inspect %>;
  
  var _extendedEmoji = {};
  Discourse.Dialect.registerEmoji = function(code, url) {
  