Generate HTML from markdown using javascript