Converting Markdown from Node to JS