updated main task to properly handle PhantomJS passed information