Added support for option phantomFlags to pass command line options to phantomjs when spawning child process