Another ugly node-phantomjs bridge