;
        }
      } else if (/true|false/.test(match)) {
        cls = 'boolean';
      } else if (/null/.test(match)) {
        cls = 'null';
      }
      return '<span class="' + cls + '">' + match + '</span>';
    });
  }

  function getJSONData (name) {
    $.ajax({
      type: 'GET',
      url:`./characters/${name}.json`,
      dataType: 'json',
      success: function(res) {
        let str = ''
        if (res.avatar) {
          str += `<img id='avatar' src="${res.avatar}" alt="avatar">`
        }
