Fix sidebar/list.js issues & add legend
Merge branch 'master' into gh-pages