defined document.write & console.log