Fixes for stupid IE
More stupid fixes for IE

No textContent method, so use innerHTML.

document.createElement().toString() always results in '[object]'