What I would like to be able to do is create a string from a Javascript HTMLElement Object. For example:
var day = document.createElement(\"div\");
day.class
You need to create text node to add text for your created element like this:
var day = document.createElement("div");
day.className = "day";
// create text node
var txt = document.createTextNode('Random Text');
// add text to div now
day.appendChild(txt);
// append to body
document.body.appendChild(day);