Fix jsdoc code examples formatting

Some examples in the docs were not showing as code snippets,
but as regular text.