JDocumentHTML::parse

Parses the template and populates the buffer