PhantomJS and asynchronous resources after load