Examples for using Q (https://github.com/kriskowal/q) - a promise driven async library for JavaScript