I've been wanting to read this. Sweet: https://gist.github.com/g-P/cbdfd4a4b982ba8fa04b
The book was written for both computer and pdf, so you should really build the PDF from the code to get the parts of the text that have been altered for print. If you just PDF the html, you end up with some weird things from the interactive parts.
You can find the build targets here: https://github.com/marijnh/Eloquent-JavaScript/blob/master/M...