How to use JS to write to the screen.