Moving jquery script to process relative links to markdown files to its own file