Functional Reactive Programming example with AJAX