wait.for version for the browser without ES6-generators