refactored reveal.js