spec helper method to wait for window.dreemInit method OR test the window.DREEM_INITED flag