Genuine question - why?
IMHO, most of the flak javascript gets is primarily due to 2 reasons -
1. Using javascript indiscriminately
2. Using javascript frameworks to a point where it becomes it's own universe and people end up with blinders unable to see anything else.
In both these cases, the issue is not as much as with the language as with the people (ab)using it.