beautifyDoc check for document tag