Start of dom output generator