handle markdown files as well as js