Update flow.js