bug in fastdom nextFramePromise, replaced with wait method that uses FrameWatch