There might be a solution passing arguments to executeScript(). I'll try that, it should be nicer.