code: function htmlTable(obj) {
      var html = '<table>';
      for (var key in obj) {
        html += '<tr><th>'+Espruino.Core.Utils.escapeHTML(key)+'</th><td>'+Espruino.Core.Utils.escapeHTML(obj[key])+'</td></tr>';
      }
      return html + '</table>';
    }
docs: Make an HTML table out of a simple key/value object