updated the js on the index page to load the markdown file synchronously