Inspecting where phantomjs is getting stuck