Launch phantomjs using spawn; should work better on Linux/Docker