reverted changes in src/book.js and src/renderer.js that were not meant for master branch