Survey flow in js.