better option for waiting for DOM ready in phantom js