Added: document.write & updated console.log