assign doctitle to title attribute

- also use single quotes where interpolation is not used