writer: better conform to html5:
* unconditionally render title
* specify type for embedded css
* render css in head, before js