Use Anyfetch object prototype
Linting
Fixed incorrect error message
`batch` function
`getDocumentWithInfo` function
Partially revert #b6febe3 (functions were supposed to be "static")
Test `getDocumentWithInfo`