Oh it's a pure spoiler. I think they shouldn't allow this type of help. It did help me, but I don't really feel proud when completing a level like this I wonder if I would thought about that. What I noticed is that there is no checkpass method in that javascript which was fishy to me, but I didn't notice the link.

You know, I'm pretty sure now that if there is a hell, this is probably how it would be coded.

I just got so irritated with the code that I actually started hating this mission... but it was also kind of amusing...It's just that even when I figured out and was finishing it, I still felt like I didn't know WTF I was doing.The difficulty description is accurate...

I think the best thing to do here is just to not think too much about what you initially in the source.. it's redundant and confusing.. I mean, you should look at it of course, but don't think that the whole answer is there.You'll just end up over-thinking everything... which.. actually is pretty understandable with this test based on my experience with it, (I hope that's not unique too me...) but anyway, what you want is somewhere else.

I got to the second word of the answer by accident, using a javascript injection. I then followed some of the hints and got to the relevant code and there i got my answer. The biggest mistake was probably missing the space between the words. Don't forget the space! Hope i'm not giving too much of a hint/giving a hint that was already given.