add markdown support; change config file to config.js from config.json