Better workaround for trailing newline issue @ chrome

instead of a unreacheable last-line; this fix always adds a new line at
the end which is always usable
Also added declaration + title tag to demo-page

refs #5