code: function(x) {
          // remove '[' and ']' from character lists:
          var charList = data.main[languageCode].characters[charType[x]].slice(1, -1);
          // remove '//' for now:
          if (charType[x] == 'punctuation') {
              charList = charList.replace(/(\\+)/g, function(m, a) {
                  if (a.length === 2) {
                      return '\\';
                  } else {
                      return '';
                  }
              });
          }
  
          var characters = charList.split(' ');
          var codePoints = characters.map(function(x) {
              return x.charCodeAt(0);
          });
          return codePoints;
      }
docs: Function to create an array of code points for each charType of a lang: