fix d3 cdn in config.yml and fix bugs in index.Rmd