HTML to Markdown javascript converter