Reactive Programming Tutorial in Javascript