Its not too difficult (think basic1), if your looking in the right area it comes pretty quickly.
I'm not so great with the javascript commands and so there were a few options, but if you just test bits of the right section (use alert(variable)) then it shouldn't be that hard to find the correct password.

