console and document

writing to the console and to the document