Execute PhantomJS commands through PHP