You didn't even read the article you posted, it never even mentioned passwords. Hahahahaha.
Get it through your thick skull that Javascript isn't a program, it's a language; and no computer language is going to conduct operations the developer didn't tell it to.