So you judge a non-technical article written by a non-technical person on the fact that he doesn't know that two programming language with a very similar name are not the same language?
You spotted this error because you know the difference between Java and Javascript. But what about the stuff that you don't know? How do you spot those errors?