Fix jsdocs
Add option [markdown] to generate markdown docs