add minimal document, head, body elements