pandoc reveal.js refactor