Improve the API of the PhantomJSConsoleExecutor