phantomjs: use system.stdout.write