Updated main.js to convert links to .md files