Thanks Sanford. I learnt to work in console a bit, and that helped. My code is now working.
Deepak
Deepak, perhaps you should submit an Idea to add a page's meta tags to the Visits Web Page activity as well as including those as a Constraint on the Visited Web Page filter and Visits Web Page trigger. That would be the best way to handle this as an out-of-the-box function in Marketo.
Even better/in addition, if there were an official way (rather than a hack) to customize the first Visit Web Page from Munchkin::init, then we could code up whatever we want.