Added currentRenderedPage, pagesInCurrentChapter and fixed compressed stylesheet replacement