';
for (x = 0; x < width; x++) {
var index = y * width + x;
if (index < charmap.length) {
var chr = charmap[index];
var charCode = parseInt(chr[0], 10);
var chrText = chr ? String.fromCharCode(charCode) : ' ';
gridHtml += '' + ' ' + chrText + ' ' + ' | ';
} else {
gridHtml += ' | ';
}
}
gridHtml += '
';
}
gridHtml += '