Another JavaScript example
With a better way of writing text to a page