A little quick demo of promises in js.