Source code for the tagtree.tv episode on promises