var text = document.getElementById('textArea');
var sumbit = document.getElementById('submitButtonArea');

var player = {
    "name": "",
    "face": 3,
    "skin": [217, 183, 31],
    "hair": 0,
    "hairColor": [0, 0, 0],
    "tshirt": 'e',
    "tColor": [255, 0, 0],
    'pColor': [0, 50, 0],
    'hp': 50,
    'mp': 10,
    'maxhp': 50,
    'maxmp': 10,
    'mapX': 13,
    'mapY': 5,
    'xp': 0,
    'nextLevel': 100,
    'money': 0,
    'facing':'South',
    'items': [{'item':'shirt',
             'n':1,
             'def':1,
             'desc':'A shirt with a math symbol.',
             use(){
               text.innerHTML = 'You put on the shirt.';
               player.torso = {'item':'shirt','def':1,'eva':0}; 
               player.def = player.head.def + player.leftHand.def + player.rightHand.def + player.torso.def;
               player.def += player.legs.def + player.feet.def;
               player.eva = player.head.eva + player.leftHand.eva + player.rightHand.eva + player.torso.eva;
               player.eva += player.legs.eva + player.feet.eva;  
             }
            },
             {'item':'pants',
             'n':1,
             'desc':'A pair of pants.',
              'def':1,
             use(){
               text.innerHTML = 'You put on the pants.';
               player.leg = {'item':'pants','def':1,'eva':0};
               player.def = player.head.def + player.leftHand.def + player.rightHand.def + player.torso.def;
               player.def += player.legs.def + player.feet.def;
               player.eva = player.head.eva + player.leftHand.eva + player.rightHand.eva + player.torso.eva;
               player.eva += player.legs.eva + player.feet.eva;
             }
            },
              {'item':'shoes',
                'n':1,
                 'desc':'A pair of shoes.',
                use(){
                    text.innerHTML = 'You put on the shoes.';
                    player.feet = {'item':'shoes','def':1,'eva':1};
                    player.def = player.head.def + player.leftHand.def + player.rightHand.def + player.torso.def;
                    player.def += player.legs.def + player.feet.def;
                    player.eva = player.head.eva + player.leftHand.eva + player.rightHand.eva + player.torso.eva;
                    player.eva += player.legs.eva + player.feet.eva;  
              }
            }],
    'head':{'item':'None','def':0,'eva':0},
    'leftHand':{'item':'None','atk':0,'def':0,'eva':0},
    'rightHand':{'item':'None','atk':0,'def':0,'eva':0},
    'torso':{'item':'shirt','def':1,'eva':0},
    'legs':{'item':'pants','def':1,'eva':0},
    'feet':{'item':'shoes','def':1,'eva':1},
    'def': 3,
    'eva': 1,
    'atk': 1,
     'questLog':[],
     x: 280,
     y: 100
 };

function stats() {
  // line1
  var thingie = '<table><tr>';
   thingie += '<td> Attack: </td><td>' + player.atk + ' </td>';
   thingie += '<td> Head: </td><td>' + player.head.item + ' </td>';
   thingie += '<td> Body: </td><td> '+ player.torso.item + '</td>';
  thingie += '</tr>';
  // line 2
  thingie += '<tr>';
   thingie += '<td> Defense: </td><td>' + player.def  + ' </td>';
   thingie += '<td> Left hand: </td><td> ' + player.leftHand.item + ' </td>';
   thingie += '<td> Right hand: </td><td>' + player.rightHand.item + '</td>';
  thingie += '</tr>';
  // line 3
  thingie += '<tr>';
   thingie += '<td> Evasion: </td><td>' + player.eva  + ' </td>';
   thingie += '<td> Legs: </td><td> ' + player.legs.item + ' </td>';
   thingie += '<td> Feet: </td><td> ' + player.feet.item + ' </td>';
  thingie += '</tr></table>';
  text.innerHTML = thingie;
}

@@ -2766,862 +2766,4 @@
  %7D;%0A
-%0Afunction stats() %7B%0A  // line1%0A  var thingie = '%3Ctable%3E%3Ctr%3E';%0A   thingie += '%3Ctd%3E Attack: %3C/td%3E%3Ctd%3E' + player.atk + ' %3C/td%3E';%0A   thingie += '%3Ctd%3E Head: %3C/td%3E%3Ctd%3E' + player.head.item + ' %3C/td%3E';%0A   thingie += '%3Ctd%3E Body: %3C/td%3E%3Ctd%3E '+ player.torso.item + '%3C/td%3E';%0A  thingie += '%3C/tr%3E';%0A  // line 2%0A  thingie += '%3Ctr%3E';%0A   thingie += '%3Ctd%3E Defense: %3C/td%3E%3Ctd%3E' + player.def  + ' %3C/td%3E';%0A   thingie += '%3Ctd%3E Left hand: %3C/td%3E%3Ctd%3E ' + player.leftHand.item + ' %3C/td%3E';%0A   thingie += '%3Ctd%3E Right hand: %3C/td%3E%3Ctd%3E' + player.rightHand.item + '%3C/td%3E';%0A  thingie += '%3C/tr%3E';%0A  // line 3%0A  thingie += '%3Ctr%3E';%0A   thingie += '%3Ctd%3E Evasion: %3C/td%3E%3Ctd%3E' + player.eva  + ' %3C/td%3E';%0A   thingie += '%3Ctd%3E Legs: %3C/td%3E%3Ctd%3E ' + player.legs.item + ' %3C/td%3E';%0A   thingie += '%3Ctd%3E Feet: %3C/td%3E%3Ctd%3E ' + player.feet.item + ' %3C/td%3E';%0A  thingie += '%3C/tr%3E%3C/table%3E';%0A  text.innerHTML = thingie;%0A%7D%0A

Update player.js