A demo of
bacon.js
a functional reactive programming library for JavaScript
By
Philip Roberts
Hint: tilt your device, then
read the annotated source code