Flow-based programming for JavaScript