Using PhantomJS to test tasks page in headless webkit