Proper javascript evaluation 

You get null if you pass anonymous function as evaluateScript method parameter.

Look at http://github.com/Behat/MinkSelenium2Driver/issues/61