text: var kEmojiJsonUrl = "https://raw.githubusercontent.com/vlukman/EmojiChromeExt/master/data/emoji.json";
  
  function setupCopyButtonBehavior() {
    var clipboard = new ClipboardJS('.emo-btn', {
      text : function(trigger) {
        // |emoji| is a custom variable that is set
        // when the HTML object is auto-generated.
        // See createEmojiDOM() method.
        return trigger.emoji;
      }
    });
    
    $('.emo-btn').click(function(e) {
     	var btn = $(this);
    	var text = btn.text();
    	btn.fadeOut(200, function(){
    		btn.text('Copied!').fadeIn(200);
    		setTimeout(function(){ 
          btn.text(text);
        }, 500);
      });
    });
  }
  
  function setupSectionToggleBehavior() {
    $('.toggle').click(function(e) {
      e.preventDefault();
  
      var $this = $(this);
  
      if ($this.next().hasClass('show')) {
          $this.next().removeClass('show');
          $this.next().slideUp(350);
      } else {
          $this.parent().parent().find('li .inner').removeClass('show');
          $this.parent().parent().find('li .inner').slideUp(350);
          $this.next().toggleClass('show');
          $this.next().slideToggle(350);
      }
    });
  }
  
  $(document).ready(function() {
    $.getJSON(kEmojiJsonUrl, function(emojiJson) {
      var mainAccordion = $('#main-accordion');
      if (emojiJson == null || mainAccordion == null) return;
      if (mainAccordion) {
        var testContent = createDOMWithJson(emojiJson);
        mainAccordion.append(testContent);
        setupSectionToggleBehavior();
        setupCopyButtonBehavior();
      }
    });
  });
  