http://oreilly.com/catalog/9780596517748
And of course there's all these fancy new things being built on top of it, like CoffeeScript. I just recently realized that it's not the horrible monster I always thought it was.
Incidentally you can find most of them in any decent scripting language, including Perl, Python, Ruby and Clojure.
As for why so many do hate on it, many workmen come to have strong opinions on their tools. JavaScript is a flawed tool that you're forced to use. So if its deficiencies grate on you, there is plenty of opportunity for them to grate more.
Incidentally your PHP comment is completely irrelevant. Sure, lots of people like PHP despite the fact that it is a horrible language. But on the whole, in my experience, it is a more widely hated language than JavaScript. This despite the fact that people aren't forced to use PHP.
While _Javascript: The Good Parts_ is good, it's hardly a ringing endorsement.
Lua is a very similar language, but had over a decade longer to develop, with a smaller circle of active users. It's fixed many of Javascript's design flaws.
No. Javascript is at best a nod toward better-designed languages implemented two decades ago, or more. Look at Self, and Lisp before that. It's really appalling that the sort of flexibility Javascript provides is just now reaching the mainstream, in two-thousand fucking eleven.
If I'm missing something (and you're well-versed in the history of programming language design), feel free to tell me otherwise.