A cookbook is useful... but there are many better books on javascript from O'Reilly. My favourite is Javascript Patterns. Javascript the definitive guide 6th ed is also a must have.
it is a good book , it makes know alot more about the ECMASript5 and it cover the contact points between the language and its environment(SVG , HTML , JQUERY ... ) .but this book is little bit outdated