Using document.write instead of JavaScript console.log: an Example