cleaned the book, added JS displays for examples
fixed example display error