JavaScript The Definitive Guide is exactly what it says. I have the 3rd edition, but the book has been updated and the new one is supposed to cover Ajax and other new JavaScript stuff.
Not only does the book cover programming JavaScript in great detail, but it is also a good reference when actually programming.
Jay