JViewCategories::prepareDocument

Prepares the document