Browser.execute demystified -
browser.execute(function (iAmParameterFromArray) {
return doSomething(iAmParameterFromArray);
}, ['iAmParameterToGoToFirstFunction'], function (iAmReturnFromDoSomething) {
browser.doWhatYouWant(iAmReturnFromDoSomething);
});