fixed some jslint errors
added chapters to the returned book instance
added a reference to the id to the TOC items
updated the test.js file