JavaScript FRP demo using ES6 generators.