No, not the O’Reily book, this is a good website that has a lot of JavaScript code, in case you find yourself in need…
http://www.java2s.com/Code/JavaScript/CatalogJavaScript.htm
As you might imagine, there are examples for more things in the entire website…