Building a JavaScript Framework [pdf]
s3.amazonaws.com
s3.amazonaws.com
There is no copyright or author attribution, which is surprising, since the material is well-organized and presented as a book. It feels a bit dated, and does not cover some of the "new" ideas arising from recent developments in JavaScript frameworks.
It explains the fundamentals well, and would make good study material for learning the language, working with the DOM, and getting familiar with common idioms/patterns.