Fix wait time for flow on index.js
Update index.js