Add createSingletonNode(dom.wrapper, 'div', 'slide-number', '<div class=slidenumber></div>'); in function setupDOM() in js/reveal.js