Refactoring; reveal.js working