small bug fixes in book.js