JavaScript that prints the contents of a page