I've never really got into the java-script, more into the PHP and
I must say i does look a lot trickier than it really is,
You can solve the challenge in 2 ways,
either look very close to the code and decipher the code,
or just change the password == "you password"
Hope you can use my tip.
if spoiling (sorry)