JDocument::getInstance

Returns the global JDocument object, only creating it if it doesn't already exist.